package com.toilet.easyvideofx.api.response;

import java.util.List;
import java.util.Objects;

public class FileCheckResponse {
    /**
     * 文件上传结果
     */
    private Boolean uploadResult;
    /**
     * 文件检查结果值
     */
    private List<Long> chunkList;

    public Boolean getUploadResult() {
        return uploadResult;
    }

    public void setUploadResult(Boolean uploadResult) {
        this.uploadResult = uploadResult;
    }

    public List<Long> getChunkList() {
        return chunkList;
    }

    public void setChunkList(List<Long> chunkList) {
        this.chunkList = chunkList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FileCheckResponse that = (FileCheckResponse) o;
        return Objects.equals(uploadResult, that.uploadResult) && Objects.equals(chunkList, that.chunkList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uploadResult, chunkList);
    }

    @Override
    public String toString() {
        return "FileCheckResponse{" +
                "uploadResult=" + uploadResult +
                ", chunkList=" + chunkList +
                '}';
    }
}
